package com.zjj.sc.movie.controller;

import org.springframework.cloud.netflix.feign.FeignClient;

import com.zjj.sc.movie.FeignConfiguration;
import com.zjj.sc.movie.dto.User;

import feign.Param;
import feign.RequestLine;

/**
 * 指定feign的配置类
 * @author ZHUANGJIAJIE778
 *
 */
@FeignClient(name = "microservice-4-provider-user",configuration = FeignConfiguration.class)
public interface UserFeignClient {
	
	/**
	 * 使用feign自带的注解
	 * @param id
	 * @return
	 */
	@RequestLine("GET /{id}" )
	public User findById(@Param("id") Long id);

}
